home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xaw / Form.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  5KB  |  172 lines

  1. /* $Xorg: Form.h,v 1.5 2001/02/09 02:03:43 xorgcvs Exp $ */
  2.  
  3.  
  4. /***********************************************************
  5.  
  6. Copyright 1987, 1988, 1994, 1998  The Open Group
  7.  
  8. Permission to use, copy, modify, distribute, and sell this software and its
  9. documentation for any purpose is hereby granted without fee, provided that
  10. the above copyright notice appear in all copies and that both that
  11. copyright notice and this permission notice appear in supporting
  12. documentation.
  13.  
  14. The above copyright notice and this permission notice shall be included in
  15. all copies or substantial portions of the Software.
  16.  
  17. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  20. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  21. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23.  
  24. Except as contained in this notice, the name of The Open Group shall not be
  25. used in advertising or otherwise to promote the sale, use or other dealings
  26. in this Software without prior written authorization from The Open Group.
  27.  
  28.  
  29. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
  30.  
  31.                         All Rights Reserved
  32.  
  33. Permission to use, copy, modify, and distribute this software and its 
  34. documentation for any purpose and without fee is hereby granted, 
  35. provided that the above copyright notice appear in all copies and that
  36. both that copyright notice and this permission notice appear in 
  37. supporting documentation, and that the name of Digital not be
  38. used in advertising or publicity pertaining to distribution of the
  39. software without specific, written prior permission.  
  40.  
  41. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  42. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  43. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  44. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  45. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  46. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  47. SOFTWARE.
  48.  
  49. ******************************************************************/
  50. /* $XFree86: xc/lib/Xaw/Form.h,v 1.8 2001/01/17 19:42:26 dawes Exp $ */
  51.  
  52. #ifndef _XawForm_h
  53. #define _XawForm_h
  54.  
  55. #include <X11/Intrinsic.h>
  56.  
  57. /* Resources:
  58.  
  59.  Name             Class        RepType        Default Value
  60.  ----             -----        -------        -------------
  61.  background         Background        Pixel        XtDefaultBackground
  62.  border             BorderColor    Pixel        XtDefaultForeground
  63.  borderWidth         BorderWidth    Dimension    1
  64.  defaultDistance     Thickness        int        4
  65.  destroyCallback     Callback        Pointer        NULL
  66.  displayList         DisplayList    XawDisplayList*    NULL
  67.  height             Height        Dimension    computed at realize
  68.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  69.  sensitive         Sensitive        Boolean        True
  70.  width             Width        Dimension    computed at realize
  71.  x             Position        Position    0
  72.  y             Position        Position    0
  73.  
  74. */
  75.  
  76. /* Constraint parameters:
  77.  
  78.  Name             Class        RepType        Default Value
  79.  ----             -----        -------        -------------
  80.  bottom             Edge        XtEdgeType    XtRubber
  81.  fromHoriz         Widget        Widget        (left edge of form)
  82.  fromVert         Widget        Widget        (top of form)
  83.  horizDistance         Thickness        int        defaultDistance
  84.  left             Edge        XtEdgeType    XtRubber
  85.  resizable         Boolean        Boolean        False
  86.  right             Edge        XtEdgeType    XtRubber
  87.  top             Edge        XtEdgeType    XtRubber
  88.  vertDistance         Thickness        int        defaultDistance
  89.  
  90. */
  91.  
  92.  
  93. #ifndef _XtStringDefs_h_
  94. #define XtNtop "top"
  95. #define XtRWidget "Widget"
  96. #endif
  97.  
  98. #define XtNdefaultDistance "defaultDistance"
  99. #define XtNbottom "bottom"
  100. #define XtNleft "left"
  101. #define XtNright "right"
  102. #define XtNfromHoriz "fromHoriz"
  103. #define XtNfromVert "fromVert"
  104. #define XtNhorizDistance "horizDistance"
  105. #define XtNvertDistance "vertDistance"
  106. #define XtNresizable "resizable"
  107.  
  108. #define XtCEdge "Edge"
  109. #define XtCWidget "Widget"
  110.  
  111. typedef enum {
  112.     XawChainTop,        /* Keep this edge a constant distance from
  113.                    the top of the form */
  114.     XawChainBottom,        /* Keep this edge a constant distance from
  115.                    the bottom of the form */
  116.     XawChainLeft,        /* Keep this edge a constant distance from
  117.                    the left of the form */
  118.     XawChainRight,        /* Keep this edge a constant distance from
  119.                    the right of the form */
  120.     XawRubber            /* Keep this edge a proportional distance
  121.                    from the edges of the form */
  122. } XawEdgeType;
  123.  
  124. #define XtEdgeType XawEdgeType
  125.  
  126. #define XtChainTop XawChainTop
  127. #define XtChainBottom XawChainBottom
  128. #define XtChainLeft XawChainLeft
  129. #define XtChainRight XawChainRight
  130. #define XtRubber XawRubber
  131.  
  132. #define XtEchainLeft        "chainLeft"
  133. #define XtEchainRight        "chainRight"
  134. #define XtEchainTop        "chainTop"
  135. #define XtEchainBottom        "chainBottom"
  136. #define XtErubber        "rubber"
  137.  
  138. #ifndef OLDXAW
  139. #ifndef XawNdisplayList
  140. #define XawNdisplayList "displayList"
  141. #endif
  142.  
  143. #ifndef XawCDisplayList
  144. #define XawCDisplayList "DisplayList"
  145. #endif
  146.  
  147. #ifndef XawRDisplayList
  148. #define XawRDisplayList "XawDisplayList"
  149. #endif
  150. #endif
  151.  
  152. typedef struct _FormClassRec    *FormWidgetClass;
  153. typedef struct _FormRec        *FormWidget;
  154.  
  155. extern WidgetClass formWidgetClass;
  156.  
  157. _XFUNCPROTOBEGIN
  158.  
  159. void XawFormDoLayout
  160. (
  161.  Widget        w,
  162. #if NeedWidePrototypes
  163.  Bool        do_layout
  164. #else
  165.  Boolean    do_layout
  166. #endif
  167.  );
  168.  
  169. _XFUNCPROTOEND
  170.  
  171. #endif /* _XawForm_h */
  172.